
package com.eies.engine.process;

import java.util.List;

import com.eies.engine.rule.Rule;

public interface ProcessInf {
	public int saveProcess(Process process) throws Exception;

	public int saveHistory(Process process) throws Exception;

	public Process queryHistoryById(String id) throws Exception;

	public Process queryHistory() throws Exception;

	public List<Action> queryActionById(String id,String batchId) throws Exception;

	public int saveInstance(Instance instance) throws Exception;

	public List<Rule> queryRuleById(String id,String batchId) throws Exception;

	public int updateInstance(Instance instance) throws Exception;

	public int startTask(Instance instance) throws Exception;

	public int startAllTask() throws Exception;

	public int startTaskById(String id) throws Exception;

}
